package com.bootdo.wx.dao;

import com.bootdo.wx.domain.OrderTeamUserDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

/**
 * 平团订单人员表
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2019-10-21 14:30:43
 */
@Mapper
public interface OrderTeamUserDao {

	OrderTeamUserDO get(String id);
	
	List<OrderTeamUserDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(OrderTeamUserDO orderTeamUser);
	
	int update(OrderTeamUserDO orderTeamUser);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

	/*查询拼团订单有多少人*/
	List<Map<String,Object>> getUserByOrder(Map<String, Object> map);

	/*查询有多少正在拼团的订单*/
	Map<String,Object> getPayTeamOrder(String orderId);

	/*拼团成功，修改所有拼团订单状态*/
	int successTeam(String orderId);

	/*判断自己是否拼过该团*/
	List<Map<String,Object>> panUser(Map<String, Object> map);

	/*根据订单id得到拼团信息*/
	Map<String,Object> getTeamByOrderId(Map<String, Object> map);



}
